package com.treasure.mall.biz.repository.pay;

import com.treasure.mall.biz.base.JpaSearchableRepository;
import com.treasure.mall.biz.entity.pay.RefundBillPO;
import com.treasure.mall.zbq.common.ienum.order.OrderEnums;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/6/14
 */
@Repository
public interface RefundBillRepository extends JpaSearchableRepository<RefundBillPO, String> {
    List<RefundBillPO> findByOrderId(String subOrderId);

    RefundBillPO findByOrderIdAndRefundType(String orderId, OrderEnums.RefundType refundType);

    List<RefundBillPO> findByOrderIdAndRefundTypeIsNot(String orderId, OrderEnums.RefundType refundType);
}
